package com.zhiche.lisa.bms.dao.model.driver;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 燃油类型表
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
@TableName("d_fuel_type")
public class FuelType extends Model<FuelType> {

    private static final long serialVersionUID = 1L;

    /**
     * 燃油ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 燃油编码
     */
    @TableField("fuel_code")
    private String fuelCode;
    /**
     * 燃油名称
     */
    @TableField("fuel_name")
    private String fuelName;
    /**
     * 基础油价
     */
    @TableField("base_price")
    private BigDecimal basePrice;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFuelCode() {
        return fuelCode;
    }

    public void setFuelCode(String fuelCode) {
        this.fuelCode = fuelCode;
    }

    public String getFuelName() {
        return fuelName;
    }

    public void setFuelName(String fuelName) {
        this.fuelName = fuelName;
    }

    public BigDecimal getBasePrice() {
        return basePrice;
    }

    public void setBasePrice(BigDecimal basePrice) {
        this.basePrice = basePrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FuelType{" +
                ", id=" + id +
                ", fuelCode=" + fuelCode +
                ", fuelName=" + fuelName +
                ", basePrice=" + basePrice +
                ", createTime=" + createTime +
                ", creator=" + creator +
                ", updateTime=" + updateTime +
                "}";
    }
}
